//
//  NSArray+MMGNSArrayCrash.m
//  DollsVending
//
//  Created by Don on 2017/11/3.
//  Copyright © 2017年 Memego, Inc. All rights reserved.
//

#import "NSArray+MMGNSArrayCrash.h"

@implementation NSArray (MMGNSArrayCrash)
- (id)mg_objectAtIndex:(NSUInteger)index {
    if (index >= [self count]) {
        return nil;
    }
    id value = [self objectAtIndex:index];
    if (value == [NSNull null]) {
        return nil;
    }
    return value;
}
@end
